<html>
<head><meta charset="utf-8"><title>Sublime-text · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html">Sublime-text</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="193663749"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193663749" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193663749">(Apr 11 2020 at 14:46)</a>:</h4>
<p>Hello! I asked my question on the #general room but since no one answered and its more related to the compiler, i'll try here. I usually using sublime-text as text editor with rust enhanced plugin. I haven't tried to enable it for the compiler as it uses the special <code>./x.py</code> build script and not cargo directly. Is there any tricks to make sublime-text work with the toolchain used by the compiler? In such a way that the build errors are reported directly in the code editor?</p>



<a name="193663765"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193663765" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193663765">(Apr 11 2020 at 14:47)</a>:</h4>
<p>I am currently doing some refactoring and having to open manually hundreds of file and manually jump to the error line is very cumbersome</p>



<a name="193663842"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193663842" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193663842">(Apr 11 2020 at 14:49)</a>:</h4>
<p>Put it another way: what workflow and tools do you use to work on the compiler?</p>



<a name="193665092"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665092" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665092">(Apr 11 2020 at 15:18)</a>:</h4>
<p>how do you "manually jump"?</p>



<a name="193665108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665108">(Apr 11 2020 at 15:19)</a>:</h4>
<p>in VSCode, even if I run <code>cargo check</code> in a terminal (or <code>./x.py check</code> in Rust's case), I can Ctrl+Click on error locations</p>



<a name="193665330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665330">(Apr 11 2020 at 15:24)</a>:</h4>
<p>Right now, i am running <code>./x.py check</code> in a separate terminal and manually open files in sublime text by browsing in the directories</p>



<a name="193665336"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665336" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665336">(Apr 11 2020 at 15:24)</a>:</h4>
<p>Thats .. suboptimal, to say the least</p>



<a name="193665341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665341">(Apr 11 2020 at 15:24)</a>:</h4>
<p>does sublime not have an integrated terminal?</p>



<a name="193665351"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665351" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665351">(Apr 11 2020 at 15:24)</a>:</h4>
<p>or some kind of feature where you get a "build output"?</p>



<a name="193665360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665360">(Apr 11 2020 at 15:25)</a>:</h4>
<p>by running arbitrary commands?</p>



<a name="193665376"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665376" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665376">(Apr 11 2020 at 15:25)</a>:</h4>
<p>i am looking at the doc right now</p>



<a name="193665438"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665438" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665438">(Apr 11 2020 at 15:26)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> heh for me it was infuriating enough that I can Ctrl+Click paths <code>rustfmt --check</code> errors outputs but they don't have <code>:123</code> right after them for the line number, instead they say "<a href="http://foo.rs" title="http://foo.rs">foo.rs</a> at line 123"</p>



<a name="193665445"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665445" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665445">(Apr 11 2020 at 15:26)</a>:</h4>
<p>what you're describing is way worse</p>



<a name="193665470"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665470" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665470">(Apr 11 2020 at 15:27)</a>:</h4>
<p>(I fixed this by finding a way to format on save w/o the RLS extension, so that I don't need to fix formatting differences from those <code>rustfmt --check</code> errors)</p>



<a name="193665475"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665475" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665475">(Apr 11 2020 at 15:27)</a>:</h4>
<p>yeah^^ i am trying to fix that. There is a way to define a custom build system that can run arbitrary comment, ill dig into that. I just hopes it can parse blindly the ouput and detect paths so that i can double click on it</p>



<a name="193665562"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665562" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665562">(Apr 11 2020 at 15:30)</a>:</h4>
<p>well, i managed to run <code>./x.py check</code> from sublime-text but it does not parse anything and i cannot click on the paths.</p>



<a name="193665611"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665611" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665611">(Apr 11 2020 at 15:30)</a>:</h4>
<p>not even Ctrl+Click?</p>



<a name="193665617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Sublime-text/near/193665617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Sublime-text.html#193665617">(Apr 11 2020 at 15:31)</a>:</h4>
<p>yep, but there is another option to parse the output with a regex, ill try that</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>